﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HR.ProjectX.BLL.ViewModels;
using System.ComponentModel.DataAnnotations;

namespace HR.ProjectX.GUI.ViewModels.Vehicle
{
    public class VehicleCreateView
    {
        public bool HasIssue { get; set; }
        public string Message { get; set; }

        public IList<ManufacturerView> Manufacturers { get; set; }
        public IList<VehicleCategoryView> VehicleCategories { get; set; }

        [Required(ErrorMessage = "This field is required.")]
        public string SelectedManufacturer { get; set; }
        [Required(ErrorMessage = "This field is required.")]
        public string SelectedCategory { get; set; }

        [Required(ErrorMessage = "This field is required.")]
        public string Model { get; set; }
        [Required(ErrorMessage = "This field is required.")]
        public string RegistrationNumber { get; set; }
        [Required(ErrorMessage = "This field is required.")]
        public int CurrentKilometers { get; set; }
        [Required(ErrorMessage = "This field is required.")]
        public int DailyHireRate { get; set; }
    }
}